/*
 * pixel.h
 *
 *  Created on: Feb 26, 2011
 *      Author: Mo
 */
#pragma once

/**
 * This class implements a pixel in a binary image.
 */
class Pixel
{
private:
	int row;
	int col;
	int value;

public:
	void setRow (int r);
	void setCol (int c);
	void setValue (int c);
	void setRowCol (int r, int c);
	int getRow (void);
	int getCol (void);
	int getValue (void);
	Pixel & operator= (const Pixel &);
	bool hasSameCoordinate(int r, int c);
	bool hasSameCoordinate(const Pixel p);

	Pixel (int, int);
	Pixel(int, int, int);
	Pixel ();
	//Pixel(Pixel& other);
	~Pixel();



};